﻿using System;
using System.ComponentModel.DataAnnotations;
using XStudio.XCRF.Data.Business.Archieve;
using XStudio.XCRF.Data.Enums;

namespace XStudio.XCRF.Data.Entities.BasicInfo
{
    /// <summary>
    /// 否合并其它疾病及用药
    /// </summary>
    public partial class BasicOtherMerge : BaseEntity<BasicOtherMerge>, IArchieve
    {
        #region 属性
        /// <summary>
        /// 基本信息ID
        /// </summary>
        [ForeignKey("BasicInfo")]
        public Guid? BasicInfoID { get; set; }
        /// <summary>
        /// 基本信息
        /// </summary>
        public BasicInfo BasicInfo { get; set; }
        /// <summary>
        /// 疾病诊断
        /// </summary>
        [ArchieveField]
        [EnumDataType(typeof(DiagnoseTypes))]
        public byte? Diagnose { get; set; }
        /// <summary>
        /// 用药名称
        /// </summary>
        [ArchieveField]
        public string DrugName { get; set; }
        /// <summary>
        /// 日剂量
        /// </summary>
        [ArchieveField]
        public string Dose { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        [ArchieveField]
        [DataType(DataType.Date)]
        [Column(TypeName = "date")]
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [ArchieveField]
        [DataType(DataType.Date)]
        [Column(TypeName = "date")]
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 效果
        /// </summary>
        [ArchieveField]
        [Column(TypeName = "varchar")]
        [MaxLength(100)]
        public string Effect { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [ArchieveField]
        [Column(TypeName = "varchar")]
        [MaxLength(100)]
        public string Remark { get; set; }
        #endregion 属性
    }
}
